<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 过渡:1.开始值 2.过渡属性值 3.过渡时间
        lienar 匀速 
        ease-in 先慢后快
        ease-out 先快后慢
        */
        /* left,right,top,bottom要和position:absolute;一起使用 */
        .box{
            border: 1px solid #000;
            width: 800px;
            height: 210px;
            line-height: 210px;
            position: relative;
        }
        .inner1{
            height: 100px;
            width: 100px;
            background-color: green;
            /* 让盒子动起来必须加定位 */
            position: absolute;
            left: 0;
            /* 那些属性参与动画 */
            transition-property: left;
            /* 多久完成动画 */
            transition-duration: 1s;
            /* 延迟执行 */
            /* transition-delay: 3s; */
            /* 完成动画的过程 匀速,先快后慢... */
            transition-timing-function: linear;
        }
        .box:hover .inner1{
            /* 终点值 */
            left: 700px;
        }
        .inner2{
            height: 100px;
            width: 100px;
            background-color: pink;
            /* 让盒子动起来必须加定位 */
            position: absolute;
            left: 0;
            top:100px;
           /* 复合属性 */
           transition: all 1s 0s cubic-bezier(0.45,-0.39, 0.16, 0.76);
        }
        .box:hover .inner2{
            /* 终点值 */
            left: 700px;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="inner1"></div>
        <div class="inner2"></div>
    </div>
</body>
</html>